const mongoose = require('../db/conn');

var shopSchema = mongoose.Schema({
    // 商品图片路径
    imgUrl: {
        type: String,
        require: true
    },
    // 商品图片标题
    imgTitle: {
        type: String,
        default: ''
    },
    // 商品标题
    title: {
        type: String,
        require: true
    },
    // 商品价格
    price: {
        type: Number,
        require: true
    },
    // 商品创建时间
    createTime: {
        type: Date,
        require: false,
        default: Date.now
    }
});

module.exports = shopSchema;

